widget-factory: Ensure spinbuttons are sized right
authorMatthias Clasen <mclasen@redhat.com>
Sat, 23 Jan 2016 20:52:09 +0000 (15:52 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 23 Jan 2016 23:16:51 +0000 (18:16 -0500)
GtkEntry now respects the padding set by the theme, so we
need to ask the spin buttons to show 2 characters, otherwise
they will be clipped.

demos/widget-factory/widget-factory.ui

index 908c1bfa9b7006ca9cc13bc4f89f88178d1ced3b..07a6ade5d56632e108ed749320b10b3bfd6aeac4 100644 (file)
@@ -618,6 +618,8 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                                 <property name="visible">1</property>
                                 <property name="can_focus">1</property>
                                 <property name="invisible_char">•</property>
+                                <property name="width-chars">2</property>
+                                <property name="max-width-chars">2</property>
                                 <property name="adjustment">adjustment2</property>
                               </object>
                               <packing>
@@ -631,6 +633,8 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                                 <property name="can_focus">1</property>
                                 <property name="invisible_char">•</property>
                                 <property name="sensitive">0</property>
+                                <property name="width-chars">2</property>
+                                <property name="max-width-chars">2</property>
                               </object>
                               <packing>
                                 <property name="fill">0</property>